﻿using AnyCAD.Foundation;
using AnyCAD.NX.Command;
using AnyCAD.NX.View;
using AnyCAD.NX.ViewModel;
using AnyCAD.Primitive.Domain;

namespace AnyCAD.Primitive
{
    /// <summary>
    /// Interaction logic for GenerateEnvelopsView.xaml
    /// </summary>
    public partial class DomainView
    {
        public DomainView()
        {
            InitializeComponent();
        }
    }



    public class DomainCommand : ComponentCommand
    {
        public DomainCommand()
        {

        }

        public override string Name { get => nameof(DomainModel); }


        public override PersistentViewModel CreateViewModel(Element element, GeneralComponent component, MainViewModel mainModel)
        {
            return new DomainViewModel(element, component, mainModel);
        }

        public override void CreateView(ICommandView view, EntityViewModel entityViewModel)
        {
            view.AddView(new DomainView());
        }

    }
}
